from myelin.Ns import MYELIN_RULES
#from myelin.rdf.bindery.ObjectTypes import ResourceTypeO, LiteralTypeO

from AclBaseRule import AclBaseRule

from ObjectTypes import \
    ArchivingRuleTypeO, ArchivingRuleTypeS

from mappings import \
    BaseMap

from nodetypes.models.ObjectTypes import \
    DocumentTypeO


class ArchivingRule(AclBaseRule):
    
    ModelTypes = (ArchivingRuleTypeO, ArchivingRuleTypeS)
    
    RDF_BINDINGS = {
        'rRule_For'         : ((MYELIN_RULES,'rule-for'), DocumentTypeO, BaseMap),
    }
    

CLASS_TYPES = {
    MYELIN_RULES + 'ArchivingRule' : ArchivingRule,
}